// mystrcpy
#include <stdio.h>
#include <iostream>
#include <assert.h>
using namespace std;

void mystrcpy(char *Dest, const char *Str)
{
    assert((Dest != NULL) && (Str != NULL));
    while ((*Dest = *Str) != '\0')
    {
        Dest++;
        Str++;
    }
}

int main()
{
    char buf[] = "hellokitty you are kitty.";
    char str[] = "kity";
    mystrcpy(buf, str);
    printf("%s\n\n", buf);

    return 0;
}
